import request from '@/utils/request'

// 查询客户回访列表
export function listCusFollow(query) {
  return request({
    url: '/custom/cusFollow/list',
    method: 'get',
    params: query
  })
}

// 查询客户回访详细
export function getCusFollow(id) {
  return request({
    url: '/custom/cusFollow/' + id,
    method: 'get'
  })
}

// 新增客户回访
export function addCusFollow(data) {
  return request({
    url: '/custom/cusFollow',
    method: 'post',
    data: data
  })
}

// 修改客户回访
export function updateCusFollow(data) {
  return request({
    url: '/custom/cusFollow',
    method: 'put',
    data: data
  })
}

// 删除客户回访
export function delCusFollow(id) {
  return request({
    url: '/custom/cusFollow/' + id,
    method: 'delete'
  })
}
